<?php

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('team-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<?php
$this->pageTitle=Yii::app()->name . ' - 项目管理';
?>
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul>
		<li><a href="<?php echo $this->createUrl('index'); ?>">项目列表</a><span></span></li>
		<li class="current"><a href="<?php echo $this->createUrl('admin'); ?>">项目管理</a><span></span></li>
		<li><a href="<?php echo $this->createUrl('create'); ?>">新建项目</a><span></span></li>
		</ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>项目管理</h2></div>
                <div class="sect">

<?php echo CHtml::link('高级查询','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(

		'pager'=>array('prevPageLabel'=>'上一页','nextPageLabel'=>'下一页','header'=>' ',),
		'summaryText'=>'',
	'id'=>'team-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'title',
		//'city_id',
		//'partner_id',
		'per_number',
		'min_number',
		'max_number',
		'now_number',
		'reach_time:date',
		'begin_time:date',
		'end_time:datetime',

		/*
		'team_price',
		'market_price',
		'product',
		'user_id',
		'summary',
		'image',
		'mobile',
		'fare',
		'address',
		'detail',
		'notice',
		'express',
		'delivery',
		'state',
		'buyonce',
		'expire_time',
		'close_time',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
			</div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>
</div>



